package com.sdry.service.impl.lz;

import java.util.List;

import javax.annotation.Resource;

import com.sdry.mapper.lz.DeviceBreakdownMapper;
import com.sdry.model.lz.DeviceBreakdown;
import com.sdry.model.lz.LzQueryCriteria;
import com.sdry.service.lz.DeviceBreakdownService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName DeviceBreakdownServiceImpl
 * @Description 设备运行管理
 * @Author lz
 * @Date 2018年9月25日 16:02:39
 * @Version 1.0
 */
@Service
@Transactional
public class DeviceBreakdownServiceImpl implements DeviceBreakdownService {

	@Resource
	DeviceBreakdownMapper deviceBreakdownMapper;
	@Override
	public Long addDeviceBreakdown(DeviceBreakdown deviceBreakdown) {
		return deviceBreakdownMapper.addDeviceBreakdown(deviceBreakdown);
	}

	@Override
	public Long deleteDeviceBreakdownById(long id) {
		return deviceBreakdownMapper.deleteDeviceBreakdownById(id);
	}

	@Override
	public Long editDeviceBreakdownById(DeviceBreakdown deviceBreakdown) {
		return deviceBreakdownMapper.editDeviceBreakdownById(deviceBreakdown);
	}

	@Override
	public List<DeviceBreakdown> queryDeviceBreakdown(LzQueryCriteria criteria) {
		return deviceBreakdownMapper.queryDeviceBreakdown(criteria);
	}

	@Override
	public int countDeviceBreakdown(LzQueryCriteria criteria) {
		return deviceBreakdownMapper.countDeviceBreakdown(criteria);
	}

	@Override
	public Long confirmRepairFinish(long id) {
		return deviceBreakdownMapper.confirmRepairFinish(id);
	}

	@Override
	public List<DeviceBreakdown> queryDeviceBreakdownApproval(LzQueryCriteria criteria) {
		return deviceBreakdownMapper.queryDeviceBreakdownApproval(criteria);
	}

	@Override
	public int countDeviceBreakdownApproval(LzQueryCriteria criteria) {
		return deviceBreakdownMapper.countDeviceBreakdownApproval(criteria);
	}

	@Override
	public Long updateApprovalStatusById(DeviceBreakdown deviceBreakdown) {
		return deviceBreakdownMapper.updateApprovalStatusById(deviceBreakdown);
	}

	@Override
	public Long updateApprovalStatusById2(DeviceBreakdown deviceBreakdown) {
		return deviceBreakdownMapper.updateApprovalStatusById2(deviceBreakdown);
	}

	@Override
	public List<DeviceBreakdown> queryCCPeopleMSG() {
		return deviceBreakdownMapper.queryCCPeopleMSG();
	}

	@Override
	public List<DeviceBreakdown> queryAllBreakdownApproval() {
		return deviceBreakdownMapper.queryAllBreakdownApproval();
	}

}
